package com.ywjh.inter.entity;

import net.sf.json.JSONObject;

public class DietFileEntity {
	private int id;
	private int diet_patient_id;
	private String filename;
	private String type;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getDiet_patient_id() {
		return diet_patient_id;
	}
	public void setDiet_patient_id(int diet_patient_id) {
		this.diet_patient_id = diet_patient_id;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public JSONObject toJson() {
		JSONObject json=new JSONObject();
		json.put("id", id);
		json.put("diet_patient_id", diet_patient_id);
		json.put("filename", filename);
		json.put("type", type);
		return json;
	}
	
	
	
}
